read (someone) the last rites

Translations
administrer les derniers sacrements à quelqu’un
Definitions
To perform a religious ceremony, usually in the Christian faith, for someone who is near death, offering prayers and blessings for their soul. Figuratively, it can also mean to do something for someone or something that is about to end or fail.